package com.example.mybatis.multdb.mapper1;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

/**
 * Project:spring-boot-mybatis-multdb
 * <p>
 * Title:UserMapper1.java
 * <p>
 * Description:
 * <p>
 * Copyrigth:Jiang Software LTD.co Copyright (c) 2022
 * <p>
 * 
 * @version 1.0
 * @since 1.8
 * @author jiang
 * @history 2022 jiang create
 */

@CacheConfig(cacheNames = "baseCache")
public interface UserMapper1 {

	@Cacheable
	@Select("select * from user")
	List<Map<String,Object>> getUsers();
}
